{% extends "../../templates/global_nav.html" %}

{% block content %}
<h4>Computers entered into the database: </h4> 

<div>

   

<table class='cbv_index'>

<tr>
<th> Edit Link</th>
<th> CBV No</th>
<th> CPU Type </th>
<th> CPU Speed </th>
<th> Case Type </th>
<th> RAM  </th>

<th> Hard Drive Size</th>
<th> Optical Device 1 </th>
<th> Optical Device 2 </th>
<th> Monitor Type </th>
<th> Monitor Size  </th>

<th> Modem Type</th>
<th> USB </th>
<th> USB Ports </th>
<th> Distro Version </th>
<th> Computer Status  </th>
</tr>

{% for computer in computer_list %}
  <tr class="{% cycle odd_row,even_row %}">
   <td> 
   <a href = "{% url formstates_wjContact.computers.views.computer_edit main_object_id=computer.id %}">  
     {{ computer }}    
   </a> 
   </td>  
   <td> {{ computer.cbv_no }} </td>
   <td> {{ computer.cpu_type }} </td>
   <td> {{ computer.cpu_speed }} </td>
   <td> {{ computer.case_type }} </td>
   <td> {{ computer.ram }} </td>
   
   <td> {{ computer.hard_drive_size }} </td>
   <td> {{ computer.optical_device1 }} </td>
   <td> {{ computer.optical_device2 }} </td>
   <td> {{ computer.monitor_type }} </td>
   <td> {{ computer.monitor_size }} </td>
   
   <td> {{ computer.modem_type }} </td> 
   <td> {{ computer.usb }} </td>
   <td> {{ computer.usb_ports }} </td>
   <td> {{ computer.distroversion }} </td>
   <td> {{ computer.computer_status }} </td>
             
  </tr>
{% endfor %}
</table>
</div>
{% endblock content %}